package com.coffee.core;

public enum LoginOutType {

    LOGIN(1),
    REFRESH(0),
    LOGOUT(-1);

    private int code;

    LoginOutType(int code){
        this.code = code;
    }

    public int code(){
        return this.code;
    }

    public static boolean isValid(Boolean isBit){
        return null == isBit || isBit.booleanValue()==false ? false : true;
    }

}
